package com.vunguyen.model;
// Generated Nov 29, 2014 7:36:58 AM by Hibernate Tools 3.6.0


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Lichlamviec generated by hbm2java
 */
@Entity
@Table(name="lichlamviec"
    ,catalog="qlkhoacntt"
)
public class Lichlamviec  implements java.io.Serializable {


     private Integer idLichLamViec;
     private Giangvien giangvien;
     private int tuan;
     private Date ngay;
     private Date thoiGianBatDau;
     private Date thoiGianKetThuc;
     private String noiDung;
     private String diaDiem;
     private String ghiChu;

    public Lichlamviec() {
    }

	
    public Lichlamviec(Giangvien giangvien, int tuan, Date ngay, Date thoiGianBatDau, Date thoiGianKetThuc, String noiDung, String diaDiem) {
        this.giangvien = giangvien;
        this.tuan = tuan;
        this.ngay = ngay;
        this.thoiGianBatDau = thoiGianBatDau;
        this.thoiGianKetThuc = thoiGianKetThuc;
        this.noiDung = noiDung;
        this.diaDiem = diaDiem;
    }
    public Lichlamviec(Giangvien giangvien, int tuan, Date ngay, Date thoiGianBatDau, Date thoiGianKetThuc, String noiDung, String diaDiem, String ghiChu) {
       this.giangvien = giangvien;
       this.tuan = tuan;
       this.ngay = ngay;
       this.thoiGianBatDau = thoiGianBatDau;
       this.thoiGianKetThuc = thoiGianKetThuc;
       this.noiDung = noiDung;
       this.diaDiem = diaDiem;
       this.ghiChu = ghiChu;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="idLichLamViec", unique=true, nullable=false)
    public Integer getIdLichLamViec() {
        return this.idLichLamViec;
    }
    
    public void setIdLichLamViec(Integer idLichLamViec) {
        this.idLichLamViec = idLichLamViec;
    }

@ManyToOne(fetch=FetchType.EAGER)
    @JoinColumn(name="idCanBo", nullable=false)
    public Giangvien getGiangvien() {
        return this.giangvien;
    }
    
    public void setGiangvien(Giangvien giangvien) {
        this.giangvien = giangvien;
    }

    
    @Column(name="Tuan", nullable=false)
    public int getTuan() {
        return this.tuan;
    }
    
    public void setTuan(int tuan) {
        this.tuan = tuan;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="Ngay", nullable=false, length=10)
    public Date getNgay() {
        return this.ngay;
    }
    
    public void setNgay(Date ngay) {
        this.ngay = ngay;
    }

    @Temporal(TemporalType.TIME)
    @Column(name="ThoiGianBatDau", nullable=false, length=8)
    public Date getThoiGianBatDau() {
        return this.thoiGianBatDau;
    }
    
    public void setThoiGianBatDau(Date thoiGianBatDau) {
        this.thoiGianBatDau = thoiGianBatDau;
    }

    @Temporal(TemporalType.TIME)
    @Column(name="ThoiGianKetThuc", nullable=false, length=8)
    public Date getThoiGianKetThuc() {
        return this.thoiGianKetThuc;
    }
    
    public void setThoiGianKetThuc(Date thoiGianKetThuc) {
        this.thoiGianKetThuc = thoiGianKetThuc;
    }

    
    @Column(name="NoiDung", nullable=false)
    public String getNoiDung() {
        return this.noiDung;
    }
    
    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }

    
    @Column(name="DiaDiem", nullable=false, length=16777215)
    public String getDiaDiem() {
        return this.diaDiem;
    }
    
    public void setDiaDiem(String diaDiem) {
        this.diaDiem = diaDiem;
    }

    
    @Column(name="GhiChu", length=45)
    public String getGhiChu() {
        return this.ghiChu;
    }
    
    public void setGhiChu(String ghiChu) {
        this.ghiChu = ghiChu;
    }




}


